package com.wze.wze.Service;

import com.wze.wze.Entity.Singer;
import com.wze.wze.Impl.SingerImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class SingerService implements SingerImpl {
    @Resource
    SingerImpl singer;

    @Override
    public Singer getSingerById(String SName) {
        return singer.getSingerById(SName);
    }

    @Override
    public Singer getSingeById(int id) {
        return singer.getSingeById(id);
    }

    @Override
    public int delSingerById(int id) {
        return singer.delSingerById(id);
    }

    @Override
    public int addSinger(String SName, String SInfo, String SImg) {
        return singer.addSinger(SName, SInfo, SImg);
    }

    @Override
    public int upSinger(Singer singer1) {
        return singer.upSinger(singer1);
    }

    @Override
    public List<Singer> getSingerList(int Start, int Page, int id, String SName) {
        return singer.getSingerList(Start,Page,id,SName);
    }

    @Override
    public int getSingerCount() {
        return singer.getSingerCount();
    }
}
